/*
 * @Author: 260156 260156@gree.com.cn
 * @Date: 2022-08-05 14:52:33
 * @LastEditors: 260156 260156@gree.com.cn
 * @LastEditTime: 2022-08-11 15:15:41
 * @FilePath: \gree-zst-web\src\views\system\role\types.ts
 * @Description:角色管理页用到的type
 *
 * Copyright (c) 2022 by 260156 260156@gree.com.cn, All Rights Reserved.
 */
// interface
export interface TableItem {
  id: number;
  roleName: string;
  remark: string;
  menuIds: Array<number>;
}

// id? ...
export type EditForm = Omit<TableItem, "id"> & Partial<Pick<TableItem, "id">>;

// id? roleName? ...
export type UpdateParams = Omit<TableItem, "id" | "roleName"> &
  Partial<Pick<TableItem, "roleName" | "id">>;
